/**
 * 
 */
package com.demo2do.fms.scheduler.dao.fms;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.demo2do.core.persistence.GenericJdbcSupport;
import com.demo2do.fms.scheduler.entity.VehicleSourceLockRecord;


/**
 * @author Ysy
 *
 */
@Repository("vehicleLockDaoSupport")
public class VehicleLockDaoSupport {
    
    @Autowired
    private GenericJdbcSupport genericJdbcSupportFms;

    /**
     * @param record
     */
    public void save(VehicleSourceLockRecord record){
        
    	String insertSentence = "INSERT INTO FMS_VEHICLE_LOCK_RECORD (id, vehicle_source_id, status, description, create_time) "
    			+ "VALUES(HIBERNATE_SEQUENCE.NEXTVAL, :vehicleSourceId, :status, :description, :createTime)";
    	
        genericJdbcSupportFms.executeSQL(insertSentence, record);
        
    }
    
}
